home *** CD-ROM | disk | FTP | other *** search
- ////////////////////////////////////////////////////////////////////////////////
- //
- // Moving tag into a region using transports
- //
- // %.tag - tag to recruit
- // %.region - region to transport to
- //
-
- CreateScript("gcshuttle")
- {
- InitialState("Recruit");
-
- CreateVarString("%.tag", "");
- CreateVarString("%.region", "");
- CreateVarInteger("%.attack", 0);
-
- State("Recruit")
- {
- Action("Recruit", "Tag")
- {
- Tag("%.tag");
- }
- Conditions()
- {
- Status("Completed")
- {
- GoToState("AcquireTransport");
- }
- }
- }
-
- State("AcquireTransport")
- {
- Action("TransportAcquire");
- Conditions()
- {
- Status("Completed")
- {
- GoToState("LoadTransport");
- }
- Status("Partial")
- {
- GoToState("LoadTransport");
- }
- }
- }
-
- State("LoadTransport")
- {
- Action("TransportLoad")
- {
- Attack("%.attack");
- }
- Conditions()
- {
- Status("Completed")
- {
- GoToState("End");
- }
- Status("Partial")
- {
- GoToState("End");
- }
- }
- }
-
- State("End")
- {
- Settings()
- {
- Setting("ObjectiveAction")
- {
- Op("@jda.shuttleleaving", "=", 1);
- }
- }
- Conditions()
- {
- Status("Completed")
- {
- End();
- }
- }
- }
- }
-
-